#-Desc: rd模块
#-Author: fxl0206

#-b to set sudo mode

install: #安装 #
	${ansiblePlay} $(call wraptags,install)

start: #启动 #P=? //port E=? //private ip
	$(call chkNotNull,P,${P})
	$(call chkNotNull,E,${E})
	${ansiblePlay} -e "listenPort=${P}" -e "endPoint=${E}" $(call wraptags,start)

stop: #停止某个端口 #P=? //port
	$(call chkNotNull,P,${P})
	${ansiblePlay} -e "listenPort=${P}" $(call wraptags,stop)

uninstall: #卸载 #
	${ansiblePlay} $(call wraptags,uninstall)